﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="MacroReportMissingException.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   This Exception will be throw if the "Do" or "UnDo" of an
//   ActionNoEntity fails.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.Saf.Exceptions
{
    using System;
    using System.Runtime.Serialization;

    using Engine.Report;

    /// <summary>
    /// This Exception will be throw if the "Do" or "UnDo" of an 
    /// ActionNoEntity fails.
    /// </summary>
    public class MacroReportMissingException : ApplicationException
    {
        #region Fields (1) 

        IProgressReport report;

        #endregion Fields 

        #region Constructors (4) 

        /// <summary>
        /// Creates a new instance of the MacroReportMissingException class with the specified message
        /// and root cause.
        /// </summary>
        /// <param name="message">
        /// A message about the exception.
        /// </param>
        /// <param name="rootCause">
        /// The root exception that is being wrapped.
        /// </param>
        public MacroReportMissingException(string message, Exception rootCause)
                : base(message, rootCause)
        {
            
        }

        /// <summary>
        /// Creates a new instance of the MacroReportMissingException class.
        /// </summary>
        /// <param name="info">
        /// The <see cref="System.Runtime.Serialization.SerializationInfo"/>
        /// that holds the serialized object data about the exception being thrown.
        /// </param>
        /// <param name="context">
        /// The <see cref="System.Runtime.Serialization.StreamingContext"/>
        /// that contains contextual information about the source or destination.
        /// </param>
        protected MacroReportMissingException (
                SerializationInfo info, StreamingContext context)
                : base (info, context)
        {
            
        }

        /// <summary>
        /// Creates a new instance of the MacroReportMissingException class. with the specified message.
        /// </summary>
        /// <param name="message">
        /// A message about the exception.
        /// </param>
        public MacroReportMissingException (string message) : base(message)
        {
            
        }


        #endregion Constructors 

        #region Properties (1) 

        #endregion Properties 
    }
}